package j03jicheng;

public class J2super {
}
//Object,父类，根类
class Ye extends Object{

}
class Fa extends Ye{
    int a = 3;
}
class Ch extends Fa{
    int a = 8;
    public void f1(){
        //this.xx 先看当前类是否有，有就用，没有去父类找
        System.out.println(a);//3 8
        System.out.println(this.a);//3 8
        //不在当前类中找
        System.out.println(super.a);//3
    }
}
class ChTest{
    public static void main(String[] args) {
        Ch c1 = new Ch();
        c1.f1();
    }
}